package com.campus.counseling.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.campus.counseling.entity.CounselorPrice;
import org.apache.ibatis.annotations.Param;

public interface CounselorPriceMapper extends BaseMapper<CounselorPrice> {
    
    /**
     * 分页查询价格设置（包含咨询师信息）
     */
    Page<CounselorPrice> selectPricePage(Page<CounselorPrice> page, 
                                       @Param("status") String status);
    
    /**
     * 获取咨询师当前有效价格
     */
    CounselorPrice selectActivePriceByCounselorId(@Param("counselorId") Long counselorId);
} 